import * as req from '@/request';

export async function list(
  params?: { [key: string]: any },
  sorter?: { [key: string]: any },
  filter?: { [key: string]: any },
) {
  return req.postForm<API.VpnServerCheckList>(
    '/vpnservercheck/list',
    params,
    sorter,
    filter,
  );
}

export async function get() {
  return req.postForm<API.VpnServerCheckModel>(
    '/vpnservercheck/get'
  );
}

export async function update(data: any) {
  return req.post<API.Result>('/vpnservercheck/update', data);
}

export async function remove(data: {ver: any}) {
  return req.post<API.Result>('/vpnservercheck/delete', data);
}

export async function report(data: {ver: any, groupId:any}) {
  return req.postForm<API.VpnServerCheckReport>(
    '/vpnservercheck/report', data
  );
}


